package com.qidian.mes.pojo;

import java.util.Date;


public class Index {
    private Long indexId;//检测项id
    private String indexCode;//检测项编码
    private String indexName;//检测项名称
    private String indexType;//检测项类型
    private String qcTool;//检测项工具
    private String indexRemark;//备注
    private String indexCreateBy;//创建人
    private Date indexCreateTime;//创建时间
    private String indexUpdateBy;//更新人
    private Date indexUpdateTime;//更新时间
    private Long indexCreateTimeMillis;
    private Long indexUpdateTimeMillis;

    public Index() {
    }

    public Index(Long indexId, String indexCode, String indexName, String indexType, String qcTool, String indexRemark, String indexCreateBy, Date indexCreateTime, String indexUpdateBy, Date indexUpdateTime, Long indexCreateTimeMillis, Long indexUpdateTimeMillis) {
        this.indexId = indexId;
        this.indexCode = indexCode;
        this.indexName = indexName;
        this.indexType = indexType;
        this.qcTool = qcTool;
        this.indexRemark = indexRemark;
        this.indexCreateBy = indexCreateBy;
        this.indexCreateTime = indexCreateTime;
        this.indexUpdateBy = indexUpdateBy;
        this.indexUpdateTime = indexUpdateTime;
        this.indexCreateTimeMillis = indexCreateTimeMillis;
        this.indexUpdateTimeMillis = indexUpdateTimeMillis;
    }

    public Long getIndexId() {
        return indexId;
    }

    public void setIndexId(Long indexId) {
        this.indexId = indexId;
    }

    public String getIndexCode() {
        return indexCode;
    }

    public void setIndexCode(String indexCode) {
        this.indexCode = indexCode;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getIndexType() {
        return indexType;
    }

    public void setIndexType(String indexType) {
        this.indexType = indexType;
    }

    public String getQcTool() {
        return qcTool;
    }

    public void setQcTool(String qcTool) {
        this.qcTool = qcTool;
    }

    public String getIndexRemark() {
        return indexRemark;
    }

    public void setIndexRemark(String indexRemark) {
        this.indexRemark = indexRemark;
    }

    public String getIndexCreateBy() {
        return indexCreateBy;
    }

    public void setIndexCreateBy(String indexCreateBy) {
        this.indexCreateBy = indexCreateBy;
    }

    public Date getIndexCreateTime() {
        return indexCreateTime;
    }

    public void setIndexCreateTime(Date indexCreateTime) {
        this.indexCreateTime = indexCreateTime;
    }

    public String getIndexUpdateBy() {
        return indexUpdateBy;
    }

    public void setIndexUpdateBy(String indexUpdateBy) {
        this.indexUpdateBy = indexUpdateBy;
    }

    public Date getIndexUpdateTime() {
        return indexUpdateTime;
    }

    public void setIndexUpdateTime(Date indexUpdateTime) {
        this.indexUpdateTime = indexUpdateTime;
    }

    public Long getIndexCreateTimeMillis() {
        if (indexCreateTime != null)
            return this.indexCreateTime.getTime();
        return null;
    }

    public void setIndexCreateTimeMillis(Long indexCreateTimeMillis) {
        this.indexCreateTimeMillis = indexCreateTimeMillis;
    }

    public Long getIndexUpdateTimeMillis() {
        if (indexCreateTime != null)
            return this.indexUpdateTime.getTime();
        return null;
    }

    public void setIndexUpdateTimeMillis(Long indexUpdateTimeMillis) {
        this.indexUpdateTimeMillis = indexUpdateTimeMillis;
    }

    @Override
    public String toString() {
        return "Index{" +
                "indexId=" + indexId +
                ", indexCode='" + indexCode + '\'' +
                ", indexName='" + indexName + '\'' +
                ", indexType='" + indexType + '\'' +
                ", qcTool='" + qcTool + '\'' +
                ", indexRemark='" + indexRemark + '\'' +
                ", indexCreateBy='" + indexCreateBy + '\'' +
                ", indexCreateTime=" + indexCreateTime +
                ", indexUpdateBy='" + indexUpdateBy + '\'' +
                ", indexUpdateTime=" + indexUpdateTime +
                ", indexCreateTimeMillis=" + indexCreateTimeMillis +
                ", indexUpdateTimeMillis=" + indexUpdateTimeMillis +
                '}';
    }
}
